//
//  BackMeViewController.m
//  hellomui
//
//  Created by zhangtao on 15/11/14.
//  Copyright © 2015年 zt.td. All rights reserved.
//

#import "BackMeViewController.h"

@interface BackMeViewController ()<UITextViewDelegate>
@property (weak, nonatomic) IBOutlet UITextView *text;
@property (weak, nonatomic) IBOutlet UIButton *submit;

@end

@implementation BackMeViewController
//-(void)viewWillAppear:(BOOL)animated{
//    self.tabBarController.tabBar.hidden = YES;
//}
//
//-(void)viewWillDisappear:(BOOL)animated{
//    self.tabBarController.tabBar.hidden = NO;
//}
- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"问题反馈";
    _text.delegate = self;
    self.automaticallyAdjustsScrollViewInsets = NO;

    self.text.layer.cornerRadius = MAIN_WIDTH/90;
    self.submit.layer.cornerRadius = MAIN_WIDTH/90;
    // Do any additional setup after loading the view from its nib.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
- (IBAction)submit:(id)sender {
    [ToolObjc showMessage:@"提交成功"];
//    [self popoverPresentationController];
    [self.navigationController popViewControllerAnimated:YES];
}

//  -(void)textViewDidChange:(UITextView *)textView{
//      
//
//    self.text.text = nil;
//}

-(void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
    [self.text resignFirstResponder];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/


@end
